home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / a_man / cat7 / postwait.z / postwait
Encoding:
Text File  |  2002-10-03  |  1.7 KB  |  67 lines

  1.  
  2.  
  3.  
  4. PPPPOOOOSSSSTTTTWWWWAAAAIIIITTTT((((7777MMMM))))                                                      PPPPOOOOSSSSTTTTWWWWAAAAIIIITTTT((((7777MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      postwait - postwait driver for Oracle
  10.  
  11. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  12.      The postwait driver implements an efficient, fast, lightweight
  13.      sleep/wakeup/timer mechanism to be used by a coordinating group of Oracle
  14.      processes.
  15.  
  16.      One process within a coordinating group that uses the postwait device
  17.      will first have to open() the postwait device. This process must then
  18.      issue an ioctl() command that will
  19.  
  20.        a)  create a postwait instance
  21.  
  22.        b)  register the caller as a user of the postwait instance
  23.  
  24.        c)  return the postwait instance number.
  25.  
  26.  
  27.      The postwait instance number must then be made available to the rest of
  28.      the processes in the coordinating group.
  29.  
  30.      The remaining processes in the coordinating group must then register
  31.      themselves with the postwait instance using the sysmips(POSTWAIT,
  32.      PWIOCREG, ...) call.
  33.  
  34.      Callers can then make calls to go to sleep or to wake up sleeping
  35.      processes via the sysmips(POSTWAIT, ...) calls.
  36.  
  37.      A process can explicitly deregister itself via the sysmips(POSTWAIT,
  38.      PWIOCDEREG, ...) call. Automatic deregistration is done on process exit.
  39.  
  40.      A postwait instance is removed and deallocated when there are no
  41.      processes that are registered with it.
  42.  
  43. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  44.      sysmips(2)
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.